package com.imooc.framework.collection;

import javafx.print.Collation;
import org.apache.commons.collections4.CollectionUtils;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

public class SubtractList {
    public static void main(String[] args) {
        List<Integer> list1 = new ArrayList<>();
        list1.add(1);
        list1.add(2);
        list1.add(3);

        List<Integer> list2 = new ArrayList<>();
        list2.add(2);
        list2.add(3);
        list2.add(4);
        Collection<Integer> intersection = CollectionUtils.subtract(list2, list1);
        System.out.println(intersection);

    }
}
